package com.lframework.xingyun.basedata.bo.product.speccost;

import java.math.BigDecimal;
import com.lframework.starter.web.core.bo.BaseBo;
import com.lframework.xingyun.basedata.entity.ProductSpecCostDetail;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

/**
 * <p>
 * 商品规格成本明细 QueryBo
 * </p>
 *
 */
@Data
public class QueryProductSpecCostDetailBo extends BaseBo<ProductSpecCostDetail> {

    /**
     * ID
     */
    @ApiModelProperty("ID")
    private String id;

    /**
     * 主商品id
     */
    @ApiModelProperty("主商品id")
    private String mainProductId;

    /**
     * 属性id
     */
    @ApiModelProperty("属性id")
    private String propertyId;

    /**
     * 属系值id
     */
    @ApiModelProperty("属系值id")
    private String itemId;

    /**
     * 源成分商品ID
     */
    @ApiModelProperty("源成分商品ID")
    private String sourceProductId;

    /**
     * 成分商品ID
     */
    @ApiModelProperty("成分商品ID")
    private String productId;

    /**
     * 消耗数量
     */
    @ApiModelProperty("消耗数量")
    private Integer consumeQuantity;

    /**
     * 类型 0=主成分 1=替换品
     */
    @ApiModelProperty("类型 0=主成分 1=替换品")
    private Integer type;

    /**
     * 单位成本
     */
    @ApiModelProperty("单位成本")
    private BigDecimal unitCost;

    /**
     * 总成本
     */
    @ApiModelProperty("总成本")
    private BigDecimal totalCost;

    public QueryProductSpecCostDetailBo() {

    }

    public QueryProductSpecCostDetailBo(ProductSpecCostDetail dto) {

        super(dto);
    }

    @Override
    public BaseBo<ProductSpecCostDetail> convert(ProductSpecCostDetail dto) {
        return super.convert(dto);
    }

    @Override
    protected void afterInit(ProductSpecCostDetail dto) {

    }
}

